import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import Index from '@/views/Index.vue'
import Application from '@/views/Application.vue'
import Guide from '@/views/Guide.vue'
import Review from '@/views/Review.vue'
import ReviewShow from '@/views/ReviewShow.vue'

const router = createRouter({
  history: createWebHistory("/pspt"), //import.meta.env.BASE_URL
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index,
      meta:{KeepAlive: false},
      children: [
        {
          path: '/home',
          name: 'home',
          component: Home,
          meta:{KeepAlive: false}
        },
        {
          path: '/application',
          name: 'application',
          component: Application
        },
        {

          path: '/guide',
          name: 'guide',
          component: Guide
        },
        {
          path: '/review',
          name: 'review',
          component: Review
        },
        {
          path: '/reviewShow',
          name: 'reviewShow',
          component: ReviewShow
        }
      ]
    }
  ]
})

export default router
